package com.csdj.t309.controller;
import com.csdj.t309.entity.CardType;
import com.csdj.t309.service.CardTypeService;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import java.util.List;
/**
 * <p>
 * 前端控制器
 * </p>
 *
 * @since 2022-03-05
 */
@RestController
@RequestMapping("/type")
public class CardTypeController {
    @Resource
    private CardTypeService cardTypeService;

    @PostMapping("/list/type")
    public List<CardType> list() {
        List<CardType> list = cardTypeService.cardTypeList();
        if (list != null) {
            return list;
        }
        return null;
    }

}
